<?xml version="1.0" encoding="UTF-8"?>
<!--
    This file is part of "Information Connections Engine".

    "Information Connections Engine" is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 2 of the License, or
    (at your option) any later version.

    "Information Connections Engine" is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with "Information Connections Engine".  If not, see http://www.gnu.org/license.
-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
           targetNamespace="InformationConnectionsEngine.defaultTemplate"
           xmlns="InformationConnectionsEngine.defaultTemplate"
           elementFormDefault="qualified">

  <xs:simpleType name="Octet">
    <xs:restriction base="xs:hexBinary">
      <xs:length value="1" />
    </xs:restriction>
  </xs:simpleType>

  <xs:complexType name="Color">
    <xs:all>
      <xs:element name="red" type="Octet"/>
      <xs:element name="green" type="Octet"/>
      <xs:element name="blue" type="Octet"/>
      <xs:element name="alpha" type="Octet"/>
    </xs:all>
  </xs:complexType>

  <xs:element name="objectLayout">
    <xs:complexType>
      <xs:choice maxOccurs="1" minOccurs="1">
        <xs:element name="sphere"/>
        <xs:element name="image" type="xs:string"/>
        <xs:element name="none"/>
      </xs:choice>
    </xs:complexType>
  </xs:element>
  
  <xs:element name="color" type="Color"/>
  
  <xs:element name="textLayout">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="color" type="Color" minOccurs="0" maxOccurs="1"/>
        <xs:element name="font" type="xs:string" minOccurs="0" maxOccurs="1"/>
        <xs:element name="position" minOccurs="0" maxOccurs="1">
          <xs:simpleType>
            <xs:restriction base="xs:string">
              <xs:enumeration value="center"/>
              <xs:enumeration value="top"/>
              <xs:enumeration value="bottom"/>
              <xs:enumeration value="hide"/>
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="size" type="xs:positiveInteger" minOccurs="0" maxOccurs="1"/>
      </xs:sequence>
      
      
    </xs:complexType>
  </xs:element>

</xs:schema>
